#include<iostream>
using namespace std;
int main()
{
	int a, b;
	cin >> a >> b;
	bool c = ((a ^ b) < 0);
	cout << c << endl;
	return 0;
}